package com.example.catalog.enums;

import com.example.common.base.BaseEnum;

/**
 * @description 通用状态枚举
 */
public enum StatusEnum implements BaseEnum<CarTypeEnum, Integer> {

    /**
     * @description 停用
     */
    DISABLED(0, "停用"),

    /**
     * @description 启用
     */
    ENABLED(1, "启用");

    private int code;

    private String description;

    StatusEnum(int code, String description) {
        this.code = code;
        this.description = description;
    }

    @Override
    public Integer getValue() {
        return code;
    }

    @Override
    public String getDisplayName() {
        return description;
    }
}
